#include "sort.hpp"
#include "tools.hpp"
#include <cstdio>

int main()
{
    auto& ansi = lxj::OpenANSI::instance();
    ansi.set_mode(1).set_color(76);
    lxj::Time time;
    auto&     random = lxj::Random<int>::instance();

    int arr[5] = {};
    for (auto& i : arr) {
        i = random(-999, 9999);
    }
    for (auto i : arr) {
        std::printf("%d, ", i);
    }
    std::puts("\n-----------------------------");
    lxj::radix_sort(arr, 5);
    for (auto i : arr) {
        std::printf("%d, ", i);
    }
    std::puts("");
    return 0;
}